<?php
/* @var $this SiteController */
/* @var $model LoginForm */
/* @var $form CActiveForm  */

$this->pageTitle=Yii::app()->name . ' - Login';
app()->clientScript->registerScriptFile(bu().'/plugins/custom_jquery.js',CClientScript::POS_HEAD);
app()->clientScript->registerScriptFile(bu().'/plugins/jquery.pngFix.pack.js',CClientScript::POS_HEAD);
app()->clientScript->registerScript('pngfix','
    $(document).pngFix( );
',CClientScript::POS_READY);
?>


<div id="login-holder">
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'login-form',
	'enableClientValidation'=>true,
	'clientOptions'=>array(
		'validateOnSubmit'=>true,
	),
)); ?>
	<!-- start logo -->
	<div id="logo-login">
		<a href="index.html"><img src="<?=bu();?>/img/admin/logo.png" width="183" height="119" alt="" /></a>
	</div>
	<!-- end logo -->
	
	<div class="clear"></div>
	
	<!--  start loginbox ................................................................................. -->
	<div id="loginbox">
	
	<!--  start login-inner -->
	<div id="login-inner">
		<table border="0" cellpadding="0" cellspacing="0">
		<tr>
			<th>Username</th>
			<td class="idform">
             <?php echo $form->textField($model,'username',array('class'=>'login-inp')); ?>
             <?php echo $form->error($model,'username'); ?>
            
            </td>
		</tr>
		<tr>
			<th>Password</th>
			<td class="idform"><?php echo $form->passwordField($model,'password',array('class'=>'login-inp')); ?>
                <?php echo $form->error($model,'password'); ?>            
           </td>
		</tr>
 	     <tr>
			<th></th>
			<td class="idform"><?php $this->widget('CCaptcha',
                array('imageOptions'=>array('width'=>'90px','background'=>'black'),
                    'showRefreshButton'=>false,
                    'clickableImage'=>true)); ?>             
           </td>
		</tr>
            <tr>
			<th></th>
			<td class="idform"> <?php echo $form->textField($model,'verifyCode',array('style'=>'width:100px','class'=>'login-inpcaptcha')); ?>
                <?php echo $form->error($model,'verifyCode'); ?>           
           </td>
		</tr>
        
          
                
	<!--	<tr>
			<th></th>
			<td valign="top"><input type="checkbox" class="checkbox-size" id="login-check" /><label for="login-check">Remember me</label></td>
		</tr>-->
		<tr>
			<th></th>
			<td class="idform">
             <?php echo CHtml::submitButton('Login',array('class'=>'submit-login')); ?>
            </td>
		</tr>
		</table>
	</div>
 	<!--  end login-inner -->
	<div class="clear"></div>
	<!--<a href="" class="forgot-pwd">Forgot Password?</a>-->
 </div>
 <!--  end loginbox -->
 
	<!--  start forgotbox ................................................................................... -->
<!--	<div id="forgotbox">
		<div id="forgotbox-text">Please send us your email and we'll reset your password.</div>

		<div id="forgot-inner">
		<table border="0" cellpadding="0" cellspacing="0">
		<tr>
			<th>Email address:</th>
			<td class="idform"><input type="text" value=""   class="login-inp" /></td>
		</tr>
		<tr>
			<th> </th>
			<td class="idform"><input type="button" class="submit-login"  /></td>
		</tr>
		</table>
		</div>
	
		<div class="clear"></div>
		<a href="" class="back-login">Back to login</a>
	</div>-->
	<!--  end forgotbox -->
<?php $this->endWidget(); ?>
</div>






